package study.rpc.dubbo.provider.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import study.rpc.dubbo.api.GreetingService;

@Slf4j
@Service("greetingService")
public class GreetingServiceImpl implements GreetingService {

    @Override
    public String sayHi(String name) {
        log.info("你好, {}", name);
        return String.format("你好, %s", name);
    }

    @Override
    public String sayBye(String name) {
        log.info("再见, {}", name);
        return String.format("再见, %s", name);
    }
}
